import { get, post, remove, put } from '@/utils/request'
// 添加用户
export const addUserMoney = userinfo => {
    return post('/api/money', userinfo)
  }
  
  // 分页获取数据
  export const getUserList = (page = 1) => {
    return get('/api/money?page=' + page)
  }
  
  // 删除用户
  export const deleteUser = (id = 0) => {
    return remove('/api/money/' + id)
  }
  
  // 根据id返回对的用户信息
  export const getUserInfo = (id = 0) => {
    return get('/api/money/' + id)
  }
  
  // 修改用户
  export const putUserInfo = (id = 0) => {
    return put('/api/money/' + id)
  }